<?php
$image = is_null($product->image_name) ? 'no-image.png' : $product->image_name;
$product_name = shorten_str($product->product_name, PRODUCT_NAME_MAXLENGTH);
$price = $product->price != 0 ? get_price_in_vnd($product->price) . ' ₫' : get_price_in_vnd($product->price);
$uri = get_base_url() . url_title($product->category, 'dash', TRUE) . '-c' . $product->categories_id . '/' . get_uri_product($product->product_name, $product->id);
$product_unit = ($product->unit != NULL && $product->unit != '') ? '/' . $product->unit : '';
?>
<div class="prod-item" title="<?=htmlentities($product->summary,ENT_QUOTES, "UTF-8")?>">
    <div class="prod-img">
        <div id="content">
            <a class="prod-img" href="<?=$uri?>" title="<?=$product_name?>">
                <img src="/images/products/thumbnails/<?php echo $image; ?>" alt="<?=$product_name?>">
            </a>
        </div>
    </div>
    <div class="prod-desc">
        <div class="prod-name">
            <a href="<?=$uri?>" title="<?=$product_name?>"><?=$product_name?></a>
        </div>
    </div>
</div>